import axios from "./axios";

// 注册
export const getRegister = (data: any) => {
    return axios({
        url: 'http://localhost:12345/api/user/register',
        method: 'post',
        data
    })
}
// 登录
export const getLogin = (data: any) => {
    return axios({
        url: 'http://localhost:12345/api/user/login',
        method: 'post',
        data
    })
}

// 首页列表
export const getHomeList = () => {
    return axios({
        url: 'http://localhost:12345/api/show/indexList',
        method: 'GET',
    })
}

// 更多
export const getListy = () => {
    return axios({
        url: 'http://localhost:12345/api/show/listList',
        method: 'GET',
    })
}

// 详情
export const getXq=(id:any)=>{
    return axios({
         url: 'http://localhost:12345/api/show/detail/'+id,
        method: 'GET',
        params:{
            id
        }
    })
}